import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity({ name: 'operate_log' })
export class OperateLogEntity {
    @PrimaryColumn('varchar', { name: 'id', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    id: string;

    @Column({ name: 'user_id', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    userId: string;

    @Column({ name: 'to_user_id', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    toUserId: string;

    @Column({ name: 'time', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    time: string;

    @Column({ name: 'type', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    type: string;

    @Column({ name: 'desc', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    desc: string;

}
